/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  Image,
  View
} from 'react-native';

export  default class StatusText extends Component {
	constructor(props){
		super(props)
		this.state= {
			size:20
		}
	}
    render(){
      return <View>
      			<Text style={{fontSize:20}} onPress={()=>{
      				this.setState({size:this.state.size+5})
      			}}>吹一下</Text>
      			<Text style={{fontSize:20}} onPress={()=>{
      				this.setState({size:this.state.size-5})
      			}}>放气</Text>
      			<Image 
      			source={require('./timg.jpg')} 
      			style={{width:this.state.size,height:this.state.size}} />
      		 </View>
    }
}  
